package chapter4.No4_1_使用reentrantLock类.demo7;

/**
 * *：使用多个Condition实现通知部分线程：正确用法
 *
 * @author liujian
 * @version 2016/11/21 0021
 */
public class Main {

    public static void main(String[] args) throws InterruptedException {
        ServiceClass sc = new ServiceClass();
        ThreadA a = new ThreadA(sc);
        ThreadB b = new ThreadB(sc);
        a.start();
        b.start();
        Thread.sleep(2000);
        sc.signalA();
    }
}
